// MyWindowDlg.h : header file
//
#include "GetWindowInfo.h"
#include "MyUtils.h"

#pragma once


// CMyWindowDlg dialog
class CMyWindowDlg : public CDialog
{
// Construction
public:
	CMyWindowDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_MYWINDOW_DIALOG };
	CStatic m_wndMouseDown;

	CStatic m_wndHWNDText;
	CStatic m_wndHWNDCoord;

	HWND m_lastWnd;
	int m_clickedTimes;

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();
private:
	void testClickInMouseDown(UINT nFlags, CPoint point);
	BOOL testPointInDialog(UINT nFlags, CPoint point);
	bool m_clickInMouseDown;
	CGetWindowInfo m_getWndInfo;
	myutils::LLKProcessor m_llkprocessor;
	int m_wndx;
	int m_wndy;
public:
	afx_msg void OnClose();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedButton2();
	afx_msg void OnBnClickedButton3();
	afx_msg void OnBnClickedButton4();
	afx_msg void OnBnClickedButton5();
	afx_msg void OnBnClickedButton6();
	afx_msg void OnBnClickedButton7();
	afx_msg void OnBnClickedButton8();
	afx_msg void OnBnClickedButton9();
};
